<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>
        表单校验
    </title>
    <link rel="stylesheet" href="src/style.css"></link>

</head>
<body>
<div class="login-form-wrap">
    <h1>黑马程序员</h1>
    <form class="login-form" action="#" id="reset" method="get" autocomplete="off">
        <label>
            <input type="text" id="username" name="username" placeholder="username..." value="">
        </label>
        <label>
            <input type="password" id="password" name="password" placeholder="Password" value="">
        </label>
        <input type="submit" value="注册">
    </form>
</div>
<script>
    document.getElementById("reset").onclick = function (){
        let len1= document.getElementById("username").value;
        let len2= document.getElementById("password").value;
        let len3= /^[a-zA-Z]{4,16}$/;
        alery("")

    }





</script>